import request from '@/utils/request'

// 查询壁纸排名列表
export function listWallRank(query) {
  return request({
    url: '/wallpaper/wallRank/list',
    method: 'get',
    params: query
  })
}

// 查询壁纸排名详细
export function getWallRank(id) {
  return request({
    url: '/wallpaper/wallRank/' + id,
    method: 'get'
  })
}

// 新增壁纸排名
export function addWallRank(data) {
  return request({
    url: '/wallpaper/wallRank',
    method: 'post',
    data: data
  })
}

// 修改壁纸排名
export function updateWallRank(data) {
  return request({
    url: '/wallpaper/wallRank',
    method: 'put',
    data: data
  })
}

// 删除壁纸排名
export function delWallRank(id) {
  return request({
    url: '/wallpaper/wallRank/' + id,
    method: 'delete'
  })
}
